/**
 * Copyright @ 2013 - 2015 Suntec Software(Shanghai) Co., Ltd.
 * All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are NOT permitted except as agreed by
 * Suntec Software(Shanghai) Co., Ltd.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 */

#include "ViewController.h"
#include "QrcPrefixsDefine.h"

ViewController::ViewController(AppId appId)
    : NQCreator(appId)
{
}

ViewController::~ViewController()
{
}

/// call addAppName() before addxxxPrefixs().
void ViewController::init()
{
    CustomQmlFileLoader::createInstance(m_appId);
    addAppName();
    addViewPrefixs();
    addMainScreenPrefixs();
    addSideScreenPrefixs();
    addLayerItemPrefixs();
    addONSPrefixs();
}

NGViewId ViewController::startViewId()
{
    return NGViewId("Demo");
}

/* EOF */

